/*
 * Filename:    KpiJobCtrlDaoImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014-12-16
 */
package com.paic.mhis.hcpms.quota.calculationreport.calculationjob.intergration.dao.impl;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.dto.HcpmsKpiJobCtrlDTO;
import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.dto.KpiBatchJobLogDTO;
import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.intergration.dao.KpiJobCtrlDao;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("kpiJobCtrlDao")
public class KpiJobCtrlDaoImpl extends BaseDAO implements KpiJobCtrlDao {

	@Override
	public HcpmsKpiJobCtrlDTO getHcpmsJobCtrl(HcpmsKpiJobCtrlDTO dto) {
		return this._getDTO("calculationjob.queryHcpmsJobCtrlInfo", dto);
	}

	@Override
	public void updateHcpmsJobCtrl(HcpmsKpiJobCtrlDTO dto) {

		this._update("calculationjob.updateHcpmsJobCtrlInfo", dto);
	}

	@Override
	public void insertKpiJobLog(KpiBatchJobLogDTO dto) {
		this._insert("calculationjob.insertKpiBatchJobLogDTO", dto);
	}

	@Override
	public void updateHcpmsJobStart(HcpmsKpiJobCtrlDTO dto) {
		this._update("calculationjob.updateHcpmsJobStart", dto);
	}

}
